package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.UserOrderBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetUserOrderInfoIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetUserOrderInfoModel extends RetrofitBaseModel implements GetUserOrderInfoIface<UserOrderBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetUserOrderInfoModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getUserOrderInfo(String orderid, TListener<UserOrderBean> tListener) {
        Call<UserOrderBean> call = allService.getUserOrderInfo(orderid);
        callenqueue(call,tListener);
    }
}
